package com.dao.purchase;

import com.model.purchase.PurchaseProgram;
import com.model.purchase.PurchaseProgramVO;

import java.util.List;
import java.util.Map;

/**
 * @description purchase_program
 * @author chenjun
 * @date 2022-02-25
 */
public interface ProgramMapper {

	/**
	 * 新增
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	int insert(PurchaseProgram purchaseProgram);

	/**
	 * 刪除
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	int delete(String gramId);

	/**
	 * 更新
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	int update(PurchaseProgram purchaseProgram);

	/**
	 * 查询 根据主键 id 查询
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	PurchaseProgram load(String id);

	/**
	 * 查询 分页查询
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	List<PurchaseProgram> pageList(int offset, int pagesize);

	/**
	 * 查询 分页查询 count
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	int pageListCount(int offset, int pagesize);

	// 查询采购方案列表
	List<PurchaseProgram> selectProgramList(Map<String, Object> map);

	// 查询采购方案列表总数
	int selectProgramCount(Map<String, Object> map);

	PurchaseProgramVO selectVO(String id);
}
